package edu.gdit.health.controller;


import edu.gdit.health.base.result.PageTableRequest;
import edu.gdit.health.base.result.Results;
import edu.gdit.health.model.LoggingEvent;
import edu.gdit.health.service.impl.LoggingEventServicImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/report")
public class LoggingEnentControLLer {

    @Autowired
    LoggingEventServicImpl loggingEventServicImpl;

    @RequestMapping(value = "/logging")
    @ResponseBody
    public Results logging(PageTableRequest pageTableRequest){
        return loggingEventServicImpl.getAll(pageTableRequest);
    }
}
